package net.begincode.blog.service.impl;

import com.google.common.collect.Lists;
import net.begincode.blog.dao.UserMapper;
import net.begincode.blog.entity.User;
import net.begincode.blog.service.DemoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DemoServiceImpl implements DemoService{
    @Resource
    private UserMapper userMapper;
    @Override
    public List<User> queryAllUser() {
        return Lists.newArrayList(userMapper.selectByPrimaryKey(1L));
    }
}
